<?php
include_once("functions/db_manipulate.php");
?>
    <meta charset="UTF-8">

<?php

connectDB();
startTransaction();

$checkCommentResultSet = mysql_query("UPDATE topicmessages SET checked = '1' WHERE id = '".mysql_real_escape_string($_GET['cid'])."'");

if ($checkCommentResultSet) {
    commitTransaction();
} else {
    rollbackTransaction();
}

redirect($_SERVER['HTTP_REFERER']);